<script>
export default {
  name: "Parse",
  props: {
    schemas: {
      type: Array,
      default: () => [],
    },
  },
  render() {
    const Comps = this.schemas.map((schema) => {
      const Element = schema.type;
      const Comp = <Element schema={schema}></Element>;
      return Comp;
    });

    return (<div>{Comps}</div>);
  },
};
</script>

<style>
</style>